Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small fix in prodyutils.py #173

Merged
merged 1 commit into from
Sep 26, 2024
Merged

Small fix in prodyutils.py #173

merged 1 commit into from
Sep 26, 2024

Conversation

rwxayheee
Copy link
Contributor

The change is to assign rdkit_atom.SetPDBResidueInfo before mol.AddAtom(rdkit_atom). This seemed to fix #168 (and maybe the comment # TODO passibg values at constructor not working? in the code block?)

assign rdkit_atom.SetPDBResidueInfo before mol.AddAtom(rdkit_atom)
@rwxayheee rwxayheee requested a review from diogomart September 25, 2024 19:32
@diogomart
Copy link
Contributor

There are two functions that need the fix: _prody_residue_to_rdkit and _prody_hierarchy_to_rdkit. Most code is duplicated and we might not need to treat Prody residues and Prody selections differently because a for loop over either type iterates over atoms. @sforli is there a reason to treat selections differently from residues?

@diogomart diogomart merged commit 4eff758 into forlilab:develop Sep 26, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants